package com.gxa.clientproduct.service.impl;



import com.gxa.clientproduct.mapper.SpellpriceMapper;
import com.gxa.clientproduct.pojo.Spellprice;
import com.gxa.clientproduct.service.SpellpriceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: fenglin
 * @Date:2020/11/12 14:40
 * @Version 1.0
 */
@Service("spellpriceService")
public class SpellpriceServiceImpl implements SpellpriceService {

    @Resource
    SpellpriceMapper spellpriceMapper;

    @Override
    public int spellpriceAdd(Spellprice spellprice) {
        return spellpriceMapper.insertSelective(spellprice);
    }

    @Override
    public List<Spellprice> findAll() {
        return spellpriceMapper.selectAll();
    }
}
